//
//  ServeWebViewController.m
//  YTwallet
//
//  Created by hadrlog on 2019/5/17.
//  Copyright © 2019年 hadrlog. All rights reserved.
//

#import "ServeWebViewController.h"
#import <Masonry.h>
@interface ServeWebViewController ()

@end

@implementation ServeWebViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"协议和隐私";
    UIWebView *webView = [[UIWebView alloc] init];
    [self.view addSubview:webView];
    [webView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(0);
        make.right.mas_equalTo(0);
        make.top.mas_equalTo(0);
        make.bottom.mas_equalTo(0);
        
    }];
    
    NSURL *url = [NSURL fileURLWithPath:self.filePath];
    NSURLRequest *request = [NSURLRequest requestWithURL:url];
    [webView loadRequest:request];
    
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
